import request from "@/utils/request.js";
//地址管理 
export function AddressIndex(params) {
    return request({
      url: "/address/index",
      method: "get",
      params: params,
    });
  }

//新增保存地址 
export function AddressSave(data) {
    return request({
      url: "/address/save",
      method: "post",
      data,
    });
  }

//删除地址 
export function AddressDelete(data) {
    return request({
      url: "/address/delete",
      method: "post",
      data,
    });
  }

//设为默认
export function AddressSetdefault(data) {
    return request({
      url: "/address/set_default",
      method: "post",
      data,
    });
  }

